# coding=utf-8
"""
    @project: 15python_spider
    @Author：frank
    @file： proxy_baidu.py
    @date：2024/2/20 22:24
"""
import requests
from fake_useragent import UserAgent

ua = UserAgent().random
html = requests.get(url='http://www.baidu.com', headers={'User-Agent': ua},
                    proxies={'http': 'http://84.39.112.144:3128',
                             'https': 'https://84.39.112.144:3128'},timeout=5).text
print(html)
